<?
require("config.php");

$label = "News List";

$table="med_news";

	$Query="SELECT 
	id,
	code,
	date,
	subject,
	publish  
	FROM $table ORDER BY id DESC";

	$r=myQuery($Query);

require($rela_path . "inc/header1.php");
?>

<br>
<table width="90%" border="0" align="center" cellpadding="1" cellspacing="1" class="tb">   
<tr class="tbheader"> 
    <td width="2%"> 
      <div align="center">No.</div>
    </td>
    <td width="11%"> 
      <div align="center">Date</div>
    </td>
    <td width="52%"> 
      <div align="center">Heading</div>
    </td>
    <td width="19%">
      <div align="center">Publish</div>
    </td>
    <td width="16%"> 
      <div align="center">&nbsp;</div>
    </td>
  </tr>




<?
if ($r){	
	for ($i=0;$i<count($r);$i++){?>
  <tr class="tbcontent1"> 
    <td align="right"><?print($i+1)?></td>
    <td><?print($r[$i][2])?></td>
    <td><?print($r[$i][3])?></td>	
	<td><?print($r[$i][4])?></td>
    <td align="center"><a href="news_list_detail.php?id=<?print($r[$i][0])?>">Detail</a></td>
  </tr>
<?}
	
}?>





</table>
<br>
<br>
<?
require($rela_path . "inc/footer1.php");
?>
